// SPDX-License-Identifier: GPL-2.0
/*
 * CPP: TEMPLATE
 *
 * (C) 2024.05.24 BiscuitOS <buddy.zhang@aliyun.com>
 */
#include <iostream>
#include <string.h>

using namespace std;

template <typename T>
class PERSON {
public:
	/* ATTRIBUTE */
	T age;

	/* CONSTRUCTOR */
	PERSON(T a) : age(a) {}

	/* METHOD */
	T get_age(void) {
		return age;
	}
};

int main(void) {
	/* CREATE OBJECT */
	PERSON<int> p(20.2);
	PERSON<double> q(30.2);

	/* INVOKE METHOD */
	std::cout << "INT-AGE: " << p.get_age() << std::endl;
	std::cout << "DUB-AGE: " << q.get_age() << std::endl;

	return 0;
}
